﻿using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using DevExpress.XtraReports.UI;
using System.Collections.Generic;
using System.Linq;
using System.Data;
using System.Data.SqlClient;
namespace Exact_VAS
{
    public partial class ParentDebtorStatementRpt : DevExpress.XtraReports.UI.XtraReport
    {
       
        public ParentDebtorStatementRpt()
        {
            InitializeComponent();
            this.lbUsername.Text = Environment.UserName;
        }
        public void LoadDataSource(List<ISHCMC_V_StatementAccount> ListHeader, List<ISHCMC_V_StatementAccount> ListDetail)
        {
            this.bindingSource1.DataSource = ListHeader;
            ChildDebtorStatementRpt rptSub = new ChildDebtorStatementRpt();
            rptSub.LoadDataSource(ListDetail);
            this.xrSubreport2.ReportSource = rptSub;
        }

       
    }
}
